<script setup lang="ts">
import ArticleList from './components/ArticleList.vue'
import ChannelNav from './components/ChannelNav.vue'
import axios from 'axios'
import { ref } from 'vue';
// 在App.vue中维护 频道id
// const channelId = ref(0)
// 在父组件中可以在模板中使用 $event 接收到子组件传出来的值
// const changeChannel = (val: number) => {
//   console.log(val)
//   channelId.value = val
// }
</script>

<template>
<ChannelNav></ChannelNav>
<ArticleList></ArticleList>
</template>

<style lang="scss" scoped></style>
